import { Component, OnInit, Input } from '@angular/core';
import { TagData } from "../../../../entity/tag-data.model";
@Component({
  selector: 'app-transformer',
  templateUrl: './transformer.component.html',
  styleUrls: ['./transformer.component.css']
})
export class TransformerComponent implements OnInit {
  @Input()
  turbineStatus: TagData;//设备状态
  @Input()
  deviceName: string;//设备名称
  @Input()
  statusColor: string;//箱变状态颜色

  @Input()
  griPower: TagData;//有功功率1
  @Input()
  GriReaPower: TagData;//无功功率1
  @Input()
  GriCurA: TagData;//电流1
  @Input()
  GriVolA: TagData;//电压1
  

  isRun: boolean = false;
  constructor() { }

  ngOnInit() {
  }

  initData() {
    if (this.turbineStatus.value == 1) {
      this.isRun = true;
    } else {
      this.isRun = false;
    }
  }

}



// WEBPACK FOOTER //
// ./src/app/module/monitor/boxsubstation/transformer/transformer.component.ts